/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ProjetoCompreJa.GUI;

import ProjetoCompreJa.ClassesBasicas.ClienteCJ;
import ProjetoCompreJa.ClassesBasicas.PedidoCJ;
import ProjetoCompreJa.ClassesBasicas.ProdutoCJ;
import ProjetoCompreJa.FachadaCJ;
import ProjetoCompreJa.GUI.RegistroCliente_CJ;
import ProjetoCompreJa.Itens.Itens_CJ;
import java.awt.HeadlessException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Ma
 */
public class Teste_CJ extends javax.swing.JFrame {

    private List<ProdutoCJ> listaprodutos;
    private PedidoCJ pedido;
    private ArrayList<ClienteCJ> Clientes;
    private ArrayList<Itens_CJ> Itens;

    /**
     * Creates new form Teste
     */
    public Teste_CJ() {
        initComponents();
        this.pedido = new PedidoCJ();
        jTextFieldQuantidade.setEnabled(false);
        jTextFieldPreco.setEnabled(false);
    }

    public void listarclientes() {
        /*try {

         FachadaCJ f = new FachadaCJ();
         this.Clientes = f.ListarTodos();
         DefaultComboBoxModel modelo = new DefaultComboBoxModel();
         for (ClienteCJ cli : Clientes) {
         modelo.addElement(cli.getNome());
         }
         Clientescli.setModel(modelo);
         } catch (Exception ex) {
         JOptionPane.showMessageDialog(rootPane, ex.getMessage());
         }*/
    }

    public void listaralterar() {
        try {

            DefaultTableModel modelo = new DefaultTableModel();
            modelo.setColumnIdentifiers(new String[]{"Codigo", "Nome", "Preço"});
            FachadaCJ f = new FachadaCJ();
            this.listaprodutos = f.listarProdutos();
            for (int i = 0; i < listaprodutos.size(); i++) {
                modelo.addRow(new Object[]{listaprodutos.get(i).getId(), listaprodutos.get(i).getNome_produto(),
                    listaprodutos.get(i).getPreco()});
            }

            jEstoque.setModel(modelo);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(rootPane, ex.getMessage());

        }
    }

    public void resultado() {
        try {
            int posicao = jEstoque.getSelectedRow();
            double preco = listaprodutos.get(posicao).getPreco();
            int Qtd = Integer.parseInt(jTextFieldQuantidade.getText());
            if (jTextFieldQuantidade.getText() != null) {
                jTextFieldPreco.setText("" + (Qtd * preco));
            }

        } catch (NumberFormatException ex) {
            int posicao = jEstoque.getSelectedRow();
            double preco = listaprodutos.get(posicao).getPreco();
            jTextFieldPreco.setText("" + preco);
        }
    }

    public void listarprodutos() {
        try {

            DefaultTableModel modelo = new DefaultTableModel();
            modelo.setColumnIdentifiers(new String[]{"Nome", "Quantidade", "Preço"});
            /*for (Itens_CJ pp : this.pedido.getItens_Pedido()) {
             modelo.addRow(new Object[]{pp.getProduto().getNome_produto(), pp.getQtd(), pp.getValortotal()});
             }*/

            TabelaItens.setModel(modelo);

        } catch (Exception ex) {
            JOptionPane.showMessageDialog(rootPane, ex.getMessage());

        }
    }

    public void Desabilitar() {
        jLabelCliente.setVisible(false);
        jLabelPedido.setVisible(false);
        jTextFieldPedido.setVisible(false);
        Clientescli.setVisible(false);
        jTextFieldPedido.setVisible(false);
        Criarpedido.setVisible(false);
        jPedidosRealizados.setVisible(false);
        TabelaItens.setVisible(false);
        jEstoque.setVisible(true);
        LimparTudo.setVisible(true);
        Concluir.setVisible(true);
    }

    public void Habilitar() {
        jLabelCliente.setVisible(true);
        jLabelPedido.setVisible(true);
        jTextFieldPedido.setVisible(true);
        Clientescli.setVisible(true);
        jTextFieldPedido.setVisible(true);
        Criarpedido.setVisible(true);
        jPedidosRealizados.setVisible(true);
        TabelaItens.setEnabled(false);
        jEstoque.setVisible(false);
        LimparTudo.setVisible(false);
        Concluir.setVisible(false);
        jTextFieldQuantidade.setEnabled(false);
        Adicionar.setEnabled(false);

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelCliente = new javax.swing.JLabel();
        Clientescli = new javax.swing.JComboBox();
        jLabelPedido = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jEstoque = new javax.swing.JTable();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        Adicionar = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        TabelaItens = new javax.swing.JTable();
        jPedidosRealizados = new javax.swing.JButton();
        Criarpedido = new javax.swing.JButton();
        jTextFieldQuantidade = new java.awt.TextField();
        jTextFieldPreco = new java.awt.TextField();
        jTextFieldPedido = new java.awt.TextField();
        LimparTudo = new javax.swing.JButton();
        jLabelaviso = new javax.swing.JLabel();
        Concluir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabelCliente.setText("Cliente");

        Clientescli.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ClientescliMouseClicked(evt);
            }
        });
        Clientescli.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ClientescliActionPerformed(evt);
            }
        });

        jLabelPedido.setText("Cod Pedido");

        jLabel4.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
        jLabel4.setText("Estoque de Produtos:");

        jEstoque.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nome", "Preço"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Double.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jEstoque.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jEstoqueMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(jEstoque);

        jLabel5.setText("Quantidade:");

        jLabel6.setText("Preço:");

        Adicionar.setText("Adicionar");
        Adicionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AdicionarActionPerformed(evt);
            }
        });

        jLabel7.setText("Carrinho:");

        TabelaItens.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nome", "Quantidade", "Valor Total"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Float.class, java.lang.Float.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane4.setViewportView(TabelaItens);

        jPedidosRealizados.setText("Pedidos Realizados");
        jPedidosRealizados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jPedidosRealizadosActionPerformed(evt);
            }
        });

        Criarpedido.setText("Criar Pedido");
        Criarpedido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CriarpedidoActionPerformed(evt);
            }
        });

        jTextFieldQuantidade.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldQuantidadeKeyReleased(evt);
            }
        });

        LimparTudo.setText("Limpar Tudo");
        LimparTudo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LimparTudoActionPerformed(evt);
            }
        });

        jLabelaviso.setForeground(new java.awt.Color(255, 0, 51));
        jLabelaviso.setText("Clique no Produto desejado para adicionar ao Carrinho.");

        Concluir.setText("Concluir Compra");
        Concluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ConcluirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPedidosRealizados, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Criarpedido, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(36, 36, 36))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabelaviso, javax.swing.GroupLayout.PREFERRED_SIZE, 428, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(Concluir, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(LimparTudo))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(jLabel7))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(42, 42, 42)
                        .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldPreco, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(41, 41, 41)
                        .addComponent(Adicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(46, 46, 46)
                        .addComponent(jLabelCliente)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Clientescli, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)
                        .addComponent(jLabelPedido)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 201, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel4)
                .addGap(31, 31, 31)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelaviso)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel5)
                                .addComponent(jTextFieldQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(Adicionar))
                    .addComponent(jTextFieldPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LimparTudo)
                    .addComponent(Concluir))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelCliente)
                        .addComponent(Clientescli, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelPedido))
                    .addComponent(jTextFieldPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jPedidosRealizados, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Criarpedido, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void ClientescliActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClientescliActionPerformed
    }//GEN-LAST:event_ClientescliActionPerformed

    private void jEstoqueMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jEstoqueMouseClicked
        try {
            jTextFieldQuantidade.setEnabled(true);
            Adicionar.setEnabled(true);
            jLabelaviso.setVisible(false);
            FachadaCJ f = new FachadaCJ();
            int posicao = jEstoque.getSelectedRow();
            this.listaprodutos = f.listarProdutos();
            jTextFieldQuantidade.setText("1");
            double preco = listaprodutos.get(posicao).getPreco();
            jTextFieldPreco.setText("" + preco);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(rootPane, ex.getMessage());

        }
    }//GEN-LAST:event_jEstoqueMouseClicked

    private void AdicionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AdicionarActionPerformed
        try {

            Itens_CJ pp = new Itens_CJ();
            ProdutoCJ p = this.listaprodutos.get(jEstoque.getSelectedRow());
            pp.setProduto(p);
            /*pp.setQtd(Float.parseFloat(jTextFieldQuantidade.getText()));
             pp.setValortotal(Float.parseFloat(jTextFieldPreco.getText()));
             /*this.pedido.getItens_Pedido().add(pp);*/
            listarprodutos();
            JOptionPane.showMessageDialog(rootPane, "Produto Adicionado");

        } catch (NumberFormatException | HeadlessException ex) {
            JOptionPane.showMessageDialog(rootPane, ex.getMessage());
        }
    }//GEN-LAST:event_AdicionarActionPerformed

    private void jPedidosRealizadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jPedidosRealizadosActionPerformed
        RegistroCliente_CJ li = new RegistroCliente_CJ();
        /*li.ListarCliente();*/
        li.show();
    }//GEN-LAST:event_jPedidosRealizadosActionPerformed

    private void CriarpedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CriarpedidoActionPerformed

        if (jTextFieldPedido.getText().length() == 0) {
            JOptionPane.showMessageDialog(rootPane, "O campo Pedido está vazio");
            return;
        }
        try {
            Integer.parseInt(jTextFieldPedido.getText());
        } catch (NumberFormatException ex) {
            JOptionPane.showMessageDialog(rootPane, "Informe o campo Pedido corretamente(Apenas Numeros inteiros)");
            jTextFieldPedido.setText(null);
            return;

        }


        /*try {
         Date x = new Date();
         FachadaCJ f = new FachadaCJ();
         ClienteCJ cli = this.Clientes.get(Clientescli.getSelectedIndex());
         pedido.getCliente().setCod_Cliente(cli.getCod_Cliente());
         pedido.setCod_Pedido(Integer.parseInt(jTextFieldPedido.getText()));
         /*pedido.setData(x);*/
        /*f.Salvar_pedido(pedido);
         jTextFieldPedido.setText(null);
         JOptionPane.showMessageDialog(rootPane, "PedidoCJ Cadastrado com Sucesso");
         dispose();
         } catch (Exception ex) {
         JOptionPane.showMessageDialog(rootPane, ex.getMessage());
         }*/
    }//GEN-LAST:event_CriarpedidoActionPerformed

    private void jTextFieldQuantidadeKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldQuantidadeKeyReleased
        resultado();
    }//GEN-LAST:event_jTextFieldQuantidadeKeyReleased

    private void ClientescliMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ClientescliMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_ClientescliMouseClicked

    private void LimparTudoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LimparTudoActionPerformed
        /*if(this.pedido.getItens_Pedido().isEmpty()){
         JOptionPane.showMessageDialog(rootPane, "Não há nada a limpar no carrinho");
         return;
         }
         this.pedido.getItens_Pedido().clear();*/
        listarprodutos();
    }//GEN-LAST:event_LimparTudoActionPerformed

    private void ConcluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConcluirActionPerformed

        /*if(this.pedido.getItens_Pedido().isEmpty()){
         JOptionPane.showMessageDialog(rootPane, "Para Concluir deve pelo menos conter 1 ProdutoCJ no carrinho");
         return;
         }*/
        Habilitar();
        jTextFieldQuantidade.setEnabled(false);
    }//GEN-LAST:event_ConcluirActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Teste_CJ.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Teste_CJ().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Adicionar;
    private javax.swing.JComboBox Clientescli;
    private javax.swing.JButton Concluir;
    private javax.swing.JButton Criarpedido;
    private javax.swing.JButton LimparTudo;
    private javax.swing.JTable TabelaItens;
    private javax.swing.JTable jEstoque;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabelCliente;
    private javax.swing.JLabel jLabelPedido;
    private javax.swing.JLabel jLabelaviso;
    private javax.swing.JButton jPedidosRealizados;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane4;
    private java.awt.TextField jTextFieldPedido;
    private java.awt.TextField jTextFieldPreco;
    private java.awt.TextField jTextFieldQuantidade;
    // End of variables declaration//GEN-END:variables
}
